package com.fh.controller;

import com.fh.model.ProductSku;
import com.fh.model.vo.ShoppingCartVO;
import com.fh.service.StockService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

@RestController
@RequestMapping("stockquery")
public class StockController {

    @Resource
    private StockService stockService;

    @GetMapping("select")
   public ProductSku queryStock(@RequestParam("skuId") String skuId){
        return  stockService.queryStoc(skuId);
    }

}
